package com.shujia.wyh.day07.ketang;

interface Inter11{
    void study();
}

class Student11{
    public Inter11 fun1(){
        return new Inter11() {
            @Override
            public void study() {
                System.out.println("好好学习，天天向上");
            }
        };
    }
}
public class StudentDemo11 {
    public static void main(String[] args) {
//        Student11 student11 = new Student11();
//        Inter11 inter11 = new Student11().fun1();
        new Student11().fun1().study();
    }
}
